import sys
from PyQt6.QtWidgets import QApplication, QWidget
from Widget import Ui_Form

# pyuic6 widget.ui -o Widget.py

class MainWidget(QWidget, Ui_Form):
  def __init__(self, parent=None):
    super(QWidget, self).__init__(parent)
    self.setupUi(self)

app = QApplication(sys.argv)

window = MainWidget()
window.show()
app.exec()